package org.example.controller;

import org.example.domain.Order;
import org.example.domain.response.ResponseResult;

public interface OrderController {

    ResponseResult saveOrder(Order order);
    ResponseResult deleteOrderById(int orderId);
    ResponseResult updateOrder(Order order);
    ResponseResult getAllOrder();
    ResponseResult getOrderByOrderId(int orderId);
    ResponseResult getPage(Integer currentPage,Integer pageSize);
    ResponseResult getPageByType(int userId, int pageSize, int currentPage);
}
